package core.listener
{
	import flash.events.EventDispatcher;

	public class GlobalListener extends EventDispatcher
	{
		public function GlobalListener(lock:Lock)
		{
			if(lock)
			{
				super();
			}
			else
			{
				throw new Error("GlobalListener is locked");
			}
		}
		private static var instance:GlobalListener = null;
		public static function getInstance():GlobalListener
		{
			if(!instance){
				instance = new GlobalListener(new Lock());
			}
			return instance;
		}
	}
}
class Lock{}